Skip to content

docs: create generated reference docs - #3053

Open
haleychaas wants to merge 7 commits into
mainfrom
docs-haley-generated-reference
Open

docs: create generated reference docs#3053
haleychaas wants to merge 7 commits into
mainfrom
docs-haley-generated-reference

Conversation

@haleychaas

Copy link
Copy Markdown
Contributor

Summary

  • Tooling: Added typedoc + typedoc-plugin-markdown dev deps, a docs npm script, and regeneration on version (no TypeScript bump needed — 0.28
    supports our pinned 5.3.3).
  • Config (typedoc.json): Uses node-slack-sdk's config, with two additions:
    • excludeExternals — without it, TypeDoc inlined the entire @slack/web-api + @slack/types surface (885 extra files / ~4.8 MB) that's already documented in node-slack-sdk. Output is now a focused 201 files of bolt's own API.
    • excludeScopesInPaths — collapses a @slack/-scoped output folder (a literal @ in URLs) to a clean path.
  • Docs wiring: Renamed the hand-written reference.md → interface-reference.md (preserving the curated interface/config/errors guide) so the generated docs can own the reference slug; repointed the 6 internal anchor links that pointed at the old slug; added an autogenerated Reference category to _sidebar.json.
  • CI: Added a Build docs step (Node 24.x only) to ci-build.yml that verifies generation succeeds, matching node-slack-sdk.
  • MDX fix: Escaped raw generics (SlackActionMiddlewareArgs<...>) in a SlackAction JSDoc comment that broke the Docusaurus/MDX docs-site build; fixed at the source and regenerated.

Preview here: https://docs-slack-d-docs-branc-syafbh.herokuapp.com/tools/bolt-js/

Requirements

haleychaas and others added 2 commits August 27, 2026 09:36
Set up TypeDoc + typedoc-plugin-markdown to generate a Markdown API
reference into docs/english/reference, mirroring node-slack-sdk.

- Add typedoc/typedoc-plugin-markdown dev deps and a "docs" script;
  regenerate docs as part of the "version" script.
- Add typedoc.json using node-slack-sdk's config, plus excludeExternals
  (avoids inlining the entire @slack/web-api and @slack/types surface)
  and excludeScopesInPaths (drops the @slack/ scope from output paths).
- Rename the curated reference.md to interface-reference.md so the
  generated docs can own the "reference" slug; repoint anchor links.
- Wire an autogenerated "Reference" category into _sidebar.json.
- Add a "Build docs" CI step (Node 24.x only) to verify generation.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
The SlackAction type-alias comment contained raw generic syntax
(SlackActionMiddlewareArgs<BlockAction<SomeNewAction>>) that TypeDoc
copies verbatim into the generated Markdown. Docusaurus's MDX parser
reads the unescaped `<` as a JSX tag and fails the docs-site build.

Wrap the generic expressions in backticks (inline code) so they render
literally, and regenerate the reference.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@haleychaas
haleychaas requested review from a team as code owners August 27, 2026 15:15
@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 94bab31

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.33%. Comparing base (531280a) to head (94bab31).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3053   +/-   ##
=======================================
  Coverage   94.33%   94.33%           
=======================================
  Files          43       43           
  Lines        7360     7360           
  Branches      679      679           
=======================================
  Hits         6943     6943           
  Misses        409      409           
  Partials        8        8           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants